// uno.config.ts
import {
  defineConfig,
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  presetWebFonts,
  transformerDirectives,
  transformerVariantGroup,
} from "unocss";

export default defineConfig({
  shortcuts: {
    //定义简写
    "bg-color": "b-b-#edf4fa",
    "border-color": "b-b-#edf4fa",
    "flex-center": "flex justify-center items-center",
    "flex-between": "flex items-center justify-between",
    //首页大标题样式
    "title-font": "font-bold text-14px",
    //列表页面关键字查询
    "search-container": "p-t-18px p-l-10px m-t-10px m-x-10px bg-#ffffff",

    // 首页 待处理订单
    "pending-order-item":
      "b-rd-6px text-#ffffff text-12px lh-24px cursor-pointer ", //首页 待处理订单 item
    "data-detail": "flex-between border-rd-b-6px h-[24px] px-10px mt-6px", //首页 待处理订单 数据明细
  },
  theme: {
    //定义主题变量。
    colors: {
      primary: "var(--el-color-primary)",
    },
  },
  presets: [
    //预置，用于配置预置的一些配置。
    presetUno(),
    presetAttributify(),
    presetIcons(),
    presetTypography(),
    presetWebFonts({
      fonts: {
        // ...
      },
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
});
